export const selectList = [
    {
        label: '分钟',
        value: 'tt',
    },
    {
        label: '小时',
        value: 'hh',
    },
    {
        label: '日',
        value: 'dd',
    },
    {
        label: '周',
        value: 'ww',
    },
    {
        label: '月',
        value: 'mm',
    },
    {
        label: '年',
        value: 'yy',
    },
];

export const intervalueMinuteList = [
    {
        label: '5',
        value: '5',
    },
    {
        label: '10',
        value: '10',
    },
    {
        label: '15',
        value: '15',
    },
    {
        label: '20',
        value: '20',
    },
    {
        label: '25',
        value: '25',
    },
    {
        label: '30',
        value: '30',
    },
];
export const weekOptions = [
    {
        label: '周一',
        value: '2',
    },
    {
        label: '周二',
        value: '3',
    },
    {
        label: '周三',
        value: '4',
    },
    {
        label: '周四',
        value: '5',
    },
    {
        label: '周五',
        value: '6',
    },
    {
        label: '周六',
        value: '7',
    },
    {
        label: '周日',
        value: '1',
    },
];

export function getHourList() {
    const data = [];
    for (let i = 0; i < 24; i++) {
        data.push({
            label: i + '时',
            value: i.toString(),
        });
    }
    return data;
}

export function getMonth() {
    const data = [];
    for (let i = 1; i <= 31; i++) {
        data.push({
            label: i + '号',
            value: `${i}`,
        });
    }
    // data.push({
    // 	label: '最后一天',
    // 	value: 'L'
    // });
    return data;
}

export function getintervalHourList() {
    const data = [];
    for (let i = 1; i < 24; i++) {
        data.push({
            label: i.toString(),
            value: i.toString(),
        });
    }
    return data;
}

export function getYear() {
    const data = [];
    for (let i = 1; i <= 12; i++) {
        data.push({
            label: i + '月',
            value: `${i}`,
        });
    }
    return data;
}

export function splitFn(oStr, symbol) {
    return oStr.split(symbol) || oStr;
}
